package com.dove.ohpm.service

import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.ProjectActivity

class ProjectStartupActivity : ProjectActivity {
    override suspend fun execute(project: Project) {
        ProjectLoader.getPackages(project)
        val state = ApplicationManager.getApplication().getService(UISettingConfigState::class.java)
        NetClient.setCustomHostUrl(state.hostSchema, state.hostUrl, state.hostPort)
    }
}